const http = uni.$u.http
const prefix = '/user/coupon'
export default {
	// 获取用户的优惠券列表 1 已使用 2 未使用
	couponList: (params) => http.get(`${prefix}/list`, {
		params
	}),
	
	// 兑换优惠券
	exchangeCoupon: (params) => http.get(`${prefix}/exchange`, {
		params
	}),
	
	// 领取优惠券
	receiveCoupon: (params) => http.get(`${prefix}/receive`, {
		params
	}),
	
	
	// 删除优惠券
	deleteCoupon: (params) => http.delete(`${prefix}/delete`,
		params
	),
}
